package com.first.feign;

import com.first.entity.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@FeignClient("second-server")
public interface YuDongFeignClient {
    @GetMapping("/second/users/usersById")
    public Users getUsersById(@RequestParam("id") String id);
}
